package com.example.erat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.erat.dto.SubmissionQueryDTO;
import com.example.erat.entity.Submission;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface SubmissionService extends IService<Submission> {

    /**
     * 学生提交实验报告
     */
    void submitExperiment(int studentId, int experimentId, MultipartFile file);

    /**
     * 教师获取提交列表
     */
    List<Submission> getSubmissionList(SubmissionQueryDTO queryDTO);

    /**
     * 教师评分
     */
    void gradeSubmission(String submissionId, Integer score, String feedback);

    /**
     * 下载实验报告
     */
    void downloadFile(String submissionId, HttpServletResponse response);

}    